package com.football.springboot.service;

import com.football.springboot.entity.League;
import com.football.springboot.entity.Player;
import com.football.springboot.entity.Team;
import com.baomidou.mybatisplus.extension.service.IService;
import com.football.springboot.entity.TeamAbility;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李越
 * @since 2023-02-18
 */
public interface ITeamService extends IService<Team> {

    //查看球队参加的联赛id
    List<Integer> getLeagueTeam(Integer teamId);

    //查看球队参加的联赛
    List<League> getLeagueByTeamId(Integer teamId);

    //更新球队能力值
    Integer modifyTeamAbility(TeamAbility teamAbility);

    //查看球队能力值
    TeamAbility getTeamAbility(Integer teamId);

    //查看球员阵容
    List<Player> getTeamPlayers(Integer teamId);

}
